package Bank_Program;

import java.util.Scanner;
import Bank_Program.Bank_User_List;


public class New_Bank_User {

	/**
	 * @param args
	 */
 static class User{
	 String First_Name;
	 String Last_Name;
	 
	 User(String F, String L){
		 First_Name = F;
		 Last_Name = L;
	 }		
	public static void Setup(){
		@SuppressWarnings("resource")
		Scanner user_input = new Scanner(System.in);
			
		String First_Name;
		System.out.println("Please enter your first name");
		First_Name = user_input.next();			
		String Last_Name;
		System.out.println("Please enter your last name");
		Last_Name = user_input.next();
			
		String Full_Name;
		Full_Name = First_Name + " " + Last_Name;
			
		String UserName;
		System.out.println("Please Enter Your Username: ");
		UserName =  user_input.next();
                        
				
		String Entered_Password;
		System.out.println("Please enter your password: "); 
		Entered_Password = user_input.next();
			
		String Confirmed;
		System.out.println("Please Confrim your password: ");
		Confirmed = user_input.next();
                
                
		Bank_User_List.write(UserName + "----" + Confirmed);	
		if(Confirmed.equals(Entered_Password)){
			System.out.println("Welcome " + Full_Name + "\n Your UserName is " + UserName + "\n Your Password is " + Confirmed + ". Thank you for registering" );
		}
			
		}

	}

	 
	 
	
}
